gtk4.git
4 years agoUpdate Turkish translation
Emin Tufan Çetin [Fri, 10 Sep 2021 06:40:43 +0000 (06:40 +0000)]
Update Turkish translation

4 years agoUpdate Swedish translation
Anders Jonsson [Wed, 8 Sep 2021 20:25:27 +0000 (20:25 +0000)]
Update Swedish translation

4 years agoUpdate Chinese (China) translation
Boyuan Yang [Sun, 5 Sep 2021 20:33:21 +0000 (20:33 +0000)]
Update Chinese (China) translation

4 years agoUpdate Romanian translation
Daniel Șerbănescu [Sun, 5 Sep 2021 18:43:29 +0000 (18:43 +0000)]
Update Romanian translation

(cherry picked from commit bb72acf9cd341ca30c55a0392c842e955b42e58d)

4 years agoUpdate Romanian translation
Daniel Șerbănescu [Sun, 5 Sep 2021 18:34:20 +0000 (18:34 +0000)]
Update Romanian translation

(cherry picked from commit 63d829bbc182bb06fe28a2e649f50360bc4442b8)

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sun, 5 Sep 2021 17:26:13 +0000 (17:26 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

inspector: Cosmetics

See merge request GNOME/gtk!3925

4 years agoinspector: Cosmetics
Matthias Clasen [Sun, 5 Sep 2021 16:59:11 +0000 (12:59 -0400)]
inspector: Cosmetics

Make some settings entries smaller, and make the
scales match in size. Also, inline adjustments
in the ui file, since we can do that now.

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sun, 5 Sep 2021 16:12:34 +0000 (16:12 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Avoid hand-rolled color glyph information

See merge request GNOME/gtk!3924

4 years agoBump pango req to 1.49.1
Matthias Clasen [Sat, 4 Sep 2021 13:41:20 +0000 (09:41 -0400)]
Bump pango req to 1.49.1

We are using pango api that was introduced in 1.49.1
without ifdefs, so we should require it.

4 years agoAvoid hand-rolled color glyph information
Matthias Clasen [Sat, 4 Sep 2021 13:39:29 +0000 (09:39 -0400)]
Avoid hand-rolled color glyph information

Followup to b244f31337eea. Pango provides color glyph
information for us now, so we don't need to steal a
bit anymore.

4 years agoUpdate Swedish translation
Anders Jonsson [Sun, 5 Sep 2021 14:11:36 +0000 (14:11 +0000)]
Update Swedish translation

(cherry picked from commit 19af9601636691fe13ba15bc4b69f18df175c7ca)

4 years agoUpdate Hebrew translation
Yaron Shahrabani [Sun, 5 Sep 2021 13:45:49 +0000 (13:45 +0000)]
Update Hebrew translation

4 years agoMerge branch 'better-font-rendering-demo' into 'master'
Matthias Clasen [Sun, 5 Sep 2021 04:21:29 +0000 (04:21 +0000)]
Merge branch 'better-font-rendering-demo' into 'master'

gtk-demo: Improve the font rendering demo

See merge request GNOME/gtk!3923

4 years agogtk-demo: Font rendering - Add some bling
Matthias Clasen [Sun, 5 Sep 2021 03:31:05 +0000 (23:31 -0400)]
gtk-demo: Font rendering - Add some bling

Fade the outlines and pixels in and out.

4 years agogtk-demo: Font rendering - expand docs
Matthias Clasen [Sun, 5 Sep 2021 02:59:26 +0000 (22:59 -0400)]
gtk-demo: Font rendering - expand docs

4 years agogtk-demo: Font rendering - Add keynav
Matthias Clasen [Sun, 5 Sep 2021 02:30:54 +0000 (22:30 -0400)]
gtk-demo: Font rendering - Add keynav

Add mnemonics to most controls, and make
Ctrl+/- change the zoom.

4 years agogtk-demo: Font rendering - add outlines
Matthias Clasen [Sun, 5 Sep 2021 01:20:55 +0000 (21:20 -0400)]
gtk-demo: Font rendering - add outlines

Should outlines as well.

4 years agogtk-demo: Font rendering - better start
Matthias Clasen [Sun, 5 Sep 2021 00:49:01 +0000 (20:49 -0400)]
gtk-demo: Font rendering - better start

Turn antialiasing on initially, and turn the
extents and grid off. Otherwise we show pretty
shocking rendering right from the start.

4 years agogtk-demo: Font rendering - improve the grid
Matthias Clasen [Sun, 5 Sep 2021 00:28:59 +0000 (20:28 -0400)]
gtk-demo: Font rendering - improve the grid

Allow changing the character shown in the grid.

4 years agoCosmetics
Matthias Clasen [Sun, 5 Sep 2021 02:43:44 +0000 (22:43 -0400)]
Cosmetics

Remove an unused object from the font rendering
demo ui file.

4 years agoMerge branch 'ebassi/accel-parse-doc' into 'master'
Matthias Clasen [Sat, 4 Sep 2021 23:39:10 +0000 (23:39 +0000)]
Merge branch 'ebassi/accel-parse-doc' into 'master'

Improve the gtk_accelerator_parse() docs

See merge request GNOME/gtk!3921

4 years agoMerge branch 'text-fixes' into 'master'
Matthias Clasen [Sat, 4 Sep 2021 21:39:30 +0000 (21:39 +0000)]
Merge branch 'text-fixes' into 'master'

textview: fix pango context invalidation

See merge request GNOME/gtk!3922

4 years agoUpdate Basque translation
Asier Sarasua Garmendia [Sat, 4 Sep 2021 20:54:26 +0000 (20:54 +0000)]
Update Basque translation

(cherry picked from commit 0768addbb3e79879fd8d4b207320f94ae8d69906)

4 years agotextview: Invalidate Pango contexts
Matthias Clasen [Sat, 4 Sep 2021 18:46:32 +0000 (14:46 -0400)]
textview: Invalidate Pango contexts

We need to invalidate the Pango contexts when
font settings change. Use the new helper
gtk_widget_update_pango_context to make it less
likely that we forget to update some things.

4 years agowidget: Provide a helper for updating pango contexts
Matthias Clasen [Sat, 4 Sep 2021 19:35:11 +0000 (15:35 -0400)]
widget: Provide a helper for updating pango contexts

4 years agoRename an internal function
Matthias Clasen [Sat, 4 Sep 2021 19:16:25 +0000 (15:16 -0400)]
Rename an internal function

It occupies a name I want to reuse for something else.

4 years agoRevert "gsk: Add font options to text nodes"
Matthias Clasen [Sat, 4 Sep 2021 18:52:15 +0000 (14:52 -0400)]
Revert "gsk: Add font options to text nodes"

This reverts commit f1347f5841ea526c7016a8fbd329b45001812a23.

4 years agoRevert "gsk: Add font options to the glyph cache"
Matthias Clasen [Sat, 4 Sep 2021 18:52:05 +0000 (14:52 -0400)]
Revert "gsk: Add font options to the glyph cache"

This reverts commit 6599cb001fa184ed224c655519d659f168e9face.

4 years agoRevert "gsk: Pass font options along"
Matthias Clasen [Sat, 4 Sep 2021 18:51:54 +0000 (14:51 -0400)]
Revert "gsk: Pass font options along"

This reverts commit 299c7c35148e49369c151aa4eae6066d09e9d4b4.

4 years agoRevert "gtk: Pass font options along"
Matthias Clasen [Sat, 4 Sep 2021 18:51:41 +0000 (14:51 -0400)]
Revert "gtk: Pass font options along"

This reverts commit 062a15310aefd7feac19a5b7d2c3257d317dfff9.

4 years agoUpdate Croatian translation
Goran Vidović [Sat, 4 Sep 2021 18:11:38 +0000 (18:11 +0000)]
Update Croatian translation

(cherry picked from commit 6fe3b21a01fd507116dfa7cb198022594eac128e)

4 years agoImprove the gtk_accelerator_parse() docs
Emmanuele Bassi [Sat, 4 Sep 2021 17:56:08 +0000 (18:56 +0100)]
Improve the gtk_accelerator_parse() docs

We need to escape the modifiers in angular brackets, or Markdown will
consider them as HTML tags.

We also should document the modifiers we're parsing.

4 years agoUpdate Chinese (China) translation
Boyuan Yang [Sat, 4 Sep 2021 17:38:16 +0000 (17:38 +0000)]
Update Chinese (China) translation

4 years agoUpdate Croatian translation
Goran Vidović [Sat, 4 Sep 2021 17:15:55 +0000 (17:15 +0000)]
Update Croatian translation

(cherry picked from commit 543b7defec1954cfced1a4de2a073cfbf5e324ad)

4 years agoUpdate Korean translation
Changwoo Ryu [Sat, 4 Sep 2021 09:02:48 +0000 (09:02 +0000)]
Update Korean translation

4 years agoUpdate Korean translation
Changwoo Ryu [Sat, 4 Sep 2021 08:59:22 +0000 (08:59 +0000)]
Update Korean translation

(cherry picked from commit 0a5af7693251f02b39bb73208f58609bbd2c8fb8)

4 years agoUpdate Swedish translation
Anders Jonsson [Fri, 3 Sep 2021 22:59:22 +0000 (22:59 +0000)]
Update Swedish translation

(cherry picked from commit 2dbcad428a57bac6521600267fa2d374628e2293)

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 3 Sep 2021 18:16:33 +0000 (18:16 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

widget: Redraw when font options change

See merge request GNOME/gtk!3917

4 years agowidget: Redraw when font options change
Matthias Clasen [Fri, 3 Sep 2021 17:55:39 +0000 (13:55 -0400)]
widget: Redraw when font options change

Its the right thing to do, even if it is a rare event.

4 years agoMerge branch 'small-text-fixes' into 'master'
Matthias Clasen [Fri, 3 Sep 2021 17:21:08 +0000 (17:21 +0000)]
Merge branch 'small-text-fixes' into 'master'

gsk: Pass font options down

See merge request GNOME/gtk!3908

4 years agogtk: Pass font options along
Matthias Clasen [Fri, 3 Sep 2021 11:21:15 +0000 (07:21 -0400)]
gtk: Pass font options along

Pass the widget's font options along when we
are creating text nodes.

4 years agogsk: Pass font options along
Matthias Clasen [Fri, 3 Sep 2021 11:19:36 +0000 (07:19 -0400)]
gsk: Pass font options along

Use the font options from the text node when
looking up glyphs.

4 years agogsk: Add font options to the glyph cache
Matthias Clasen [Wed, 1 Sep 2021 03:01:43 +0000 (23:01 -0400)]
gsk: Add font options to the glyph cache

The cairo_t that we create to render glyphs for
the glyph cache needs to match the font options
that are supposedly governing how glyphs are
drawn.

Since we allow font options to be different per
widget in gtk, we need to have them at least at
the level of individual render nodes. Adding them
to the lookup key for the glyph cache has the
side effect of solving another problem: We are
not flushing the cache when font options change.

4 years agogsk: Add font options to text nodes
Matthias Clasen [Fri, 3 Sep 2021 11:15:52 +0000 (07:15 -0400)]
gsk: Add font options to text nodes

Since font options affect how the glyphs get rendered,
we need to pass the font options down from the gtk level
to where the glyph cache is populated.

Add a new gsk_text_node_new_full api that takes a
cairo_font_options_t in addition to the other parameters.

4 years agogtk-demo: Improve the font rendering demo
Matthias Clasen [Fri, 3 Sep 2021 04:19:17 +0000 (00:19 -0400)]
gtk-demo: Improve the font rendering demo

Add a toggle for antialiasing, and make the metrics
hinting turn on rounding of positions, to match what
we do with settings now.

4 years agoMerge branch 'wip/exalm/buttons' into 'master'
Matthias Clasen [Fri, 3 Sep 2021 14:49:09 +0000 (14:49 +0000)]
Merge branch 'wip/exalm/buttons' into 'master'

Allow custom children on GtkMenuButton

Closes #4205

See merge request GNOME/gtk!3904

4 years agomenubutton: Support custom children
Alexander Mikhaylenko [Fri, 3 Sep 2021 11:18:06 +0000 (16:18 +0500)]
menubutton: Support custom children

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4205

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 3 Sep 2021 00:55:45 +0000 (00:55 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Add a README in gtk/compose

See merge request GNOME/gtk!3916

4 years agoAdd a README in gtk/compose
Matthias Clasen [Fri, 3 Sep 2021 00:10:19 +0000 (20:10 -0400)]
Add a README in gtk/compose

4 years agoMerge branch 'wip/smcv/transparent-is-transparent' into 'master'
Matthias Clasen [Thu, 2 Sep 2021 22:19:27 +0000 (22:19 +0000)]
Merge branch 'wip/smcv/transparent-is-transparent' into 'master'

reftest-compare: Treat colour channels as undefined if alpha is zero

Closes #4227

See merge request GNOME/gtk!3914

4 years agoreftest-compare: Treat colour channels as undefined if alpha is zero
Simon McVittie [Thu, 2 Sep 2021 21:34:14 +0000 (22:34 +0100)]
reftest-compare: Treat colour channels as undefined if alpha is zero

If the alpha channel is zero, it doesn't matter what the values of the
red, green and blue channels are: the pixel is still fully transparent.
On most architectures, fully transparent pixels end up all-zeroes
(fully transparent black), matching what's in the reference PNG file;
but on mips*el the blend-difference and blend-normal tests get all-ones
(fully transparent white) and a test failure.

Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/4227
Signed-off-by: Simon McVittie <smcv@debian.org>
4 years agoUpdate Finnish translation
Jiri Grönroos [Thu, 2 Sep 2021 16:06:39 +0000 (16:06 +0000)]
Update Finnish translation

(cherry picked from commit 33a4ae12ef268a399d0dad0b205dd87f501b14da)

4 years agoUpdated Lithuanian translation
Aurimas Černius [Thu, 2 Sep 2021 10:51:39 +0000 (13:51 +0300)]
Updated Lithuanian translation

4 years agoMerge branch 'fix-gst-subproject' into 'master'
Matthias Clasen [Thu, 2 Sep 2021 01:33:06 +0000 (01:33 +0000)]
Merge branch 'fix-gst-subproject' into 'master'

media: Check for gstreamer verion instead of using cc.links()

See merge request GNOME/gtk!3910

4 years agoMerge branch 'hint-metrics-setting' into 'master'
Matthias Clasen [Wed, 1 Sep 2021 23:15:50 +0000 (23:15 +0000)]
Merge branch 'hint-metrics-setting' into 'master'

Add a gtk-hint-font-metrics setting

See merge request GNOME/gtk!3912

4 years agoUpdate settings tests
Matthias Clasen [Wed, 1 Sep 2021 21:16:08 +0000 (17:16 -0400)]
Update settings tests

We have a new setting, so the test that is counting
settings needs an update.

4 years agoAdd a gtk-hint-font-metrics setting
Matthias Clasen [Wed, 1 Sep 2021 19:17:53 +0000 (15:17 -0400)]
Add a gtk-hint-font-metrics setting

This lets people switch back to font rendering that is closer
to what GTK 3 does. It is not perfect - subpixel antialiasing
is not going to work. But it give us an Escape hatch while
we shake out the bugs in our linear layout.

Related: #3787

4 years agoMerge branch 'color-glyph-info' into 'master'
Matthias Clasen [Wed, 1 Sep 2021 16:59:38 +0000 (16:59 +0000)]
Merge branch 'color-glyph-info' into 'master'

Use color glyph information from Pango

See merge request GNOME/gtk!3909

4 years agomedia: Check for gstreamer verion instead of using cc.links()
Xavier Claessens [Wed, 1 Sep 2021 12:08:43 +0000 (08:08 -0400)]
media: Check for gstreamer verion instead of using cc.links()

This fix error when gstgl_dep comes from a subproject because in that
case it cannot be used in compiler checks.

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Wed, 1 Sep 2021 15:06:26 +0000 (15:06 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Initial support for new Pango attributes

See merge request GNOME/gtk!3911

4 years agoInitial support for new Pango attributes
Matthias Clasen [Wed, 1 Sep 2021 14:32:45 +0000 (10:32 -0400)]
Initial support for new Pango attributes

This is still missing the GtkTextTag hookup,
but it fixes the build.

4 years agoUpdate Persian translation
Danial Behzadi [Wed, 1 Sep 2021 09:42:39 +0000 (09:42 +0000)]
Update Persian translation

4 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 1 Sep 2021 09:02:13 +0000 (11:02 +0200)]
Updated Spanish translation

4 years agoUse color glyph information from Pango
Matthias Clasen [Wed, 1 Sep 2021 05:38:44 +0000 (01:38 -0400)]
Use color glyph information from Pango

Pango now sets a bit in PangoGlyphVisAttr for
color glyphs, so we don't need to do that
ourselves anymore.

4 years agoUpdate Dutch translation
Nathan Follens [Tue, 31 Aug 2021 15:54:45 +0000 (15:54 +0000)]
Update Dutch translation

(cherry picked from commit 9aa08dd1b8b633990ac73efb76d9524f7ded32dc)

4 years agoUpdate Persian translation
eshagh shahidani [Tue, 31 Aug 2021 14:41:54 +0000 (14:41 +0000)]
Update Persian translation

(cherry picked from commit 7691c94a3732e0349a4c868982159f613d6222dc)

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 31 Aug 2021 13:15:47 +0000 (13:15 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

editable: Clarify the docs

See merge request GNOME/gtk!3906

4 years agoeditable: Clarify the docs
Matthias Clasen [Tue, 31 Aug 2021 12:41:45 +0000 (08:41 -0400)]
editable: Clarify the docs

Make it clear that your class must have all the editable properties
already before you call the (confusingly named) function
gtk_editable_install_properties.

4 years agoMerge branch 'default-settings-non-debug' into 'master'
Matthias Clasen [Mon, 30 Aug 2021 18:09:28 +0000 (18:09 +0000)]
Merge branch 'default-settings-non-debug' into 'master'

Revert "reftests: Enforce default settings"

See merge request GNOME/gtk!3903

4 years agogdk: Make GDK_DEBUG=default-settings unconditional
Matthias Clasen [Mon, 30 Aug 2021 15:01:55 +0000 (11:01 -0400)]
gdk: Make GDK_DEBUG=default-settings unconditional

Our tests use this settings, so we should respect it
in non-debug builds as well.

4 years agoRevert "reftests: Enforce default settings"
Matthias Clasen [Mon, 30 Aug 2021 15:01:22 +0000 (11:01 -0400)]
Revert "reftests: Enforce default settings"

This reverts commit 4e4f57e091020750d66134c212d7778c17d96c20.

This should not be necessary, since we have GDK_DEBUG=default-settings.

4 years agoMerge branch 'wip/smcv/compose-files' into 'master'
Matthias Clasen [Mon, 30 Aug 2021 12:52:54 +0000 (12:52 +0000)]
Merge branch 'wip/smcv/compose-files' into 'master'

Fix Compose handling on big-endian host architectures

Closes #4217

See merge request GNOME/gtk!3902

4 years agocompose: Update sequences from libX11 1.7.2
Simon McVittie [Mon, 30 Aug 2021 09:54:43 +0000 (10:54 +0100)]
compose: Update sequences from libX11 1.7.2

This adds support for sequences like <Compose>,G,u -> capital G with
breve. Previously, only a capital U was accepted for E, G, I and O
(but a lower-case u was accepted for A and U for some reason).

Signed-off-by: Simon McVittie <smcv@debian.org>
4 years agocompose: Document how to get compose-parse input from libX11 source
Simon McVittie [Mon, 30 Aug 2021 09:48:49 +0000 (10:48 +0100)]
compose: Document how to get compose-parse input from libX11 source

Signed-off-by: Simon McVittie <smcv@debian.org>
4 years agocompose: Generate endian-dependent compact Compose data
Simon McVittie [Mon, 30 Aug 2021 09:13:33 +0000 (10:13 +0100)]
compose: Generate endian-dependent compact Compose data

The GtkComposeTable cache is always in big-endian format and is
byteswapped on load for the more common little-endian CPUs, but
init_builtin_table() in GtkIMContextSimple can't byteswap the built-in
data without copying it, which is undesirable. Pregenerate both big-
and little-endian compose data, and compile the correct flavour into
each build of GTK. This fixes failure of the composetable test when
building for a big-endian architecture such as s390x and (traditional,
big-endian) powerpc.

Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/4217
Signed-off-by: Simon McVittie <smcv@debian.org>
4 years agoMerge branch 'wip/otte/for-master' into 'master'
Benjamin Otte [Mon, 30 Aug 2021 04:37:49 +0000 (04:37 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

fontbutton: Make sure the window is on the same display

See merge request GNOME/gtk!3901

4 years agocontentdeserializer: Fix some API awkwardness
Benjamin Otte [Mon, 23 Aug 2021 05:06:37 +0000 (07:06 +0200)]
contentdeserializer: Fix some API awkwardness

Allow uninitialized GValues to be passed. Makes life easier for the
inspector code I'm writing.

4 years agonode-editor: Allow dragging and dropping the center picture
Benjamin Otte [Fri, 20 Aug 2021 03:52:54 +0000 (05:52 +0200)]
node-editor: Allow dragging and dropping the center picture

Dragging will just drag the render node.

Dropping will replace the current contents of the textview with the
dropped node.

Neat side effect: You can drag the node onto itself to do a
deserialize/serialize of the current text.

4 years agorecorder: Make the render nodes in the list draggable
Benjamin Otte [Fri, 20 Aug 2021 03:52:10 +0000 (05:52 +0200)]
recorder: Make the render nodes in the list draggable

You can (soon) drag any of the nodes directly into the node-editor.

4 years agodragicon: Add a default drag icon for GskRenderNode
Benjamin Otte [Fri, 20 Aug 2021 03:51:20 +0000 (05:51 +0200)]
dragicon: Add a default drag icon for GskRenderNode

Somebody should make this default drag icon machinery pluggable.

4 years agorendernode: Add (de)serialization support for render nodes
Benjamin Otte [Thu, 19 Aug 2021 22:30:04 +0000 (00:30 +0200)]
rendernode: Add (de)serialization support for render nodes

This includes our own new mime type for render nodes, too.

4 years agorendernode: Add GValue functions for render nodes
Benjamin Otte [Thu, 19 Aug 2021 21:36:16 +0000 (23:36 +0200)]
rendernode: Add GValue functions for render nodes

This is needed as GskRenderNode is its own fundamental type and has its
own GValue infrastructure. And I want to put render nodes into the
clipboard which uses GValues.

4 years agostylecontext: Remove unneeded headers
Benjamin Otte [Mon, 23 Aug 2021 05:06:25 +0000 (07:06 +0200)]
stylecontext: Remove unneeded headers

4 years agofontbutton: Destroy dialog in unrealize()
Benjamin Otte [Mon, 23 Aug 2021 03:55:56 +0000 (05:55 +0200)]
fontbutton: Destroy dialog in unrealize()

This way, we can be sure it's always using the right display.

We can also be sure that it doesn't leak.

4 years agofontbutton: Make sure the window is on the same display
Benjamin Otte [Mon, 23 Aug 2021 03:55:32 +0000 (05:55 +0200)]
fontbutton: Make sure the window is on the same display

We don't want the font buttons created by the inspector to run on the
default display.

4 years agoMerge branch 'wip/otte/symbolic-paintable' into 'master'
Benjamin Otte [Mon, 30 Aug 2021 03:54:35 +0000 (03:54 +0000)]
Merge branch 'wip/otte/symbolic-paintable' into 'master'

Add GtkSymbolicPaintable

See merge request GNOME/gtk!3895

4 years agoMerge branch 'wip/otte/G_TYPE_POINTER' into 'master'
Benjamin Otte [Mon, 30 Aug 2021 03:50:30 +0000 (03:50 +0000)]
Merge branch 'wip/otte/G_TYPE_POINTER' into 'master'

Get rid of G_TYPE_POINTER

See merge request GNOME/gtk!3900

4 years agosymbolicpaintable: Refactor default colors path
Benjamin Otte [Mon, 30 Aug 2021 02:56:43 +0000 (04:56 +0200)]
symbolicpaintable: Refactor default colors path

4 years agoicontheme: Refactor gtk_icon_theme_lookup_symbolic_colors()
Benjamin Otte [Mon, 30 Aug 2021 02:52:47 +0000 (04:52 +0200)]
icontheme: Refactor gtk_icon_theme_lookup_symbolic_colors()

With the new enum, the code looks much cleaner.

4 years agoenums: Add a GtkSymbolicColor enum
Benjamin Otte [Mon, 30 Aug 2021 02:32:22 +0000 (04:32 +0200)]
enums: Add a GtkSymbolicColor enum

That way we don't nedmagic numbres to index the colors array.

Use it in the symbolic paintable demo.

4 years agoUpdate Kazakh translation
Baurzhan Muftakhidinov [Sun, 29 Aug 2021 17:08:32 +0000 (17:08 +0000)]
Update Kazakh translation

(cherry picked from commit 37d2d407a192fc14df211ea57a788ffe3fd16762)

4 years agoUpdate Kazakh translation
Baurzhan Muftakhidinov [Sun, 29 Aug 2021 07:41:36 +0000 (07:41 +0000)]
Update Kazakh translation

(cherry picked from commit 9e62fd82ea130b4eca052bf1313910c44a221b7e)

4 years agosearchengine: Rename private headers
Benjamin Otte [Sun, 29 Aug 2021 04:10:31 +0000 (06:10 +0200)]
searchengine: Rename private headers

The code uses G_TYPE_POINTER and I got all sorts of scared.

4 years agofilesystemmodel: Don't use G_TYPE_POINTER
Benjamin Otte [Sun, 29 Aug 2021 03:56:31 +0000 (05:56 +0200)]
filesystemmodel: Don't use G_TYPE_POINTER

It's a GError, use G_TYPE_ERROR.

4 years agoplacessidebar: Don't use G_TYPE_POINTER
Benjamin Otte [Sun, 29 Aug 2021 02:48:49 +0000 (04:48 +0200)]
placessidebar: Don't use G_TYPE_POINTER

We have a type for lists of GFiles. We invented it for DND.

Keep the annotation info, so bindings don't have to know this.

4 years agopathbar: Use correct GType in signal
Benjamin Otte [Sun, 29 Aug 2021 02:47:50 +0000 (04:47 +0200)]
pathbar: Use correct GType in signal

4 years agogtk-demo: Add a symbolic paintable demo
Benjamin Otte [Sat, 28 Aug 2021 01:46:55 +0000 (03:46 +0200)]
gtk-demo: Add a symbolic paintable demo

Don't click the button!

4 years agogtk-demo: Explicitly pass nuclear icon colors
Benjamin Otte [Fri, 27 Aug 2021 21:44:42 +0000 (23:44 +0200)]
gtk-demo: Explicitly pass nuclear icon colors

4 years agogtk: Port icontheme to GtkSymbolicPaintable
Benjamin Otte [Fri, 27 Aug 2021 22:23:29 +0000 (00:23 +0200)]
gtk: Port icontheme to GtkSymbolicPaintable

4 years agogtk: Add the GtkSymbolicPaintable interface
Benjamin Otte [Fri, 27 Aug 2021 21:33:56 +0000 (23:33 +0200)]
gtk: Add the GtkSymbolicPaintable interface